package com.TwinBlade.PicturePassword;

import android.app.AlertDialog;
import android.app.AlertDialog.Builder;
import android.app.ProgressDialog;
import android.content.Intent;
import android.os.AsyncTask;
import android.os.Bundle;
import android.os.Handler;

class r extends AsyncTask
{
  private r(Crop paramCrop)
  {
  }

  protected Boolean a(Void[] paramArrayOfVoid)
  {
    if (this.a.getIntent().getExtras() != null);
    for (boolean bool1 = this.a.getIntent().getExtras().getBoolean("CropWallpaper"); ; bool1 = false)
    {
      if (bool1)
      {
        Crop.f(this.a);
        Crop.g(this.a).post(Crop.h(this.a));
        return Boolean.valueOf(true);
      }
      int i = 0;
      while (true)
      {
        if (i >= 2)
          return Boolean.valueOf(false);
        Crop localCrop = this.a;
        boolean bool2;
        if (i == 0)
        {
          bool2 = true;
          label88: Crop.a(localCrop, bool2);
          Crop.g(this.a).post(Crop.h(this.a));
        }
        try
        {
          Thread.sleep(3000L);
          label119: if (Crop.i(this.a))
          {
            return Boolean.valueOf(true);
            bool2 = false;
            break label88;
          }
          if (i == 1)
            return Boolean.valueOf(false);
          i++;
        }
        catch (Exception localException)
        {
          break label119;
        }
      }
    }
  }

  protected void a(Boolean paramBoolean)
  {
    try
    {
      Crop.e(this.a).dismiss();
      label10: if (paramBoolean.booleanValue())
      {
        Utilities.a(Crop.a(this.a), this.a.getString(2131296435), 3, true);
        return;
      }
      AlertDialog.Builder localBuilder = new AlertDialog.Builder(Crop.a(this.a));
      localBuilder.setCancelable(false);
      localBuilder.setTitle(this.a.getString(2131296439));
      localBuilder.setMessage(this.a.getString(2131296440));
      localBuilder.setPositiveButton("Yes", new s(this));
      localBuilder.setNegativeButton("No", new t(this));
      localBuilder.create().show();
      return;
    }
    catch (Exception localException)
    {
      break label10;
    }
  }

  protected void onPreExecute()
  {
    Crop.b(this.a, ProgressDialog.show(Crop.a(this.a), this.a.getString(2131296433), this.a.getString(2131296434), true));
    Crop.e(this.a).setCancelable(false);
    Crop.e(this.a).show();
  }
}

/* Location:           D:\Studium\Bachelorarbeit\BA Marcus Wobig\BA\BA\Decompiler\PicturePassword APK\Programm\PicturePassword_dex2jar.jar
 * Qualified Name:     com.TwinBlade.PicturePassword.r
 * JD-Core Version:    0.6.2
 */